﻿@model FoodBank.Core.Models.Product
@{
    ViewBag.Title = @GlobalResources.Create;
    Layout = "~/Views/Shared/_Layout.cshtml";
    Html.Assets().Add("/Scripts/foodbank.product.create.js", AssetType.JavascriptInclude);
}
@using (Html.BeginForm())
{
    <fieldset>
        <legend>@ProductResources.Product</legend>
        <div class="floatcontent">
            <div>
                @Html.LabelFor(model => model.Name)
                @Html.TextBoxFor(model => model.Name, new { data_bind = "Name" })
            </div>
            <div>
                @Html.LabelFor(model => model.ProductCategoryId)
                <select id="categories">
                </select>
                @Html.HiddenFor(model => model.ProductCategoryId)
            </div>
            <div>
                @Html.LabelFor(model => model.BrandId)
                <select id="brands">
                </select>
                @Html.HiddenFor(model => model.BrandId)
            </div>
            <div>
                @Html.LabelFor(model => model.ServingSize)
                @Html.TextBoxFor(model => model.ServingSize, new { data_bind = "ServingSize" })
            </div>
            <div>
                @Html.LabelFor(model => model.Calories)
                @Html.TextBoxFor(model => model.Calories, new { data_bind = "Calories" })
            </div>
            <div>
                @Html.LabelFor(model => model.Proteins)
                @Html.TextBoxFor(model => model.Proteins, new { data_bind = "Proteins" })
            </div>
            <div>
                @Html.LabelFor(model => model.Carbohydrates)
                @Html.TextBoxFor(model => model.Carbohydrates, new { data_bind = "Carbohydrates" })
            </div>
        </div>
        <div class="floatcontent">
            <div>
                @Html.LabelFor(model => model.Sugar)
                @Html.TextBoxFor(model => model.Sugar, new { data_bind = "Sugar" })
            </div>
            <div>
                @Html.LabelFor(model => model.Fibres)
                @Html.TextBoxFor(model => model.Fibres, new { data_bind = "Fibres" })
            </div>
            <div>
                @Html.LabelFor(model => model.Fat)
                @Html.TextBoxFor(model => model.Fat, new { data_bind = "Fat" })
            </div>
            <div>
                @Html.LabelFor(model => model.SaturatedFat)
                @Html.TextBoxFor(model => model.SaturatedFat, new { data_bind = "SaturatedFat" })
            </div>
            <div>
                @Html.LabelFor(model => model.Salt)
                @Html.TextBoxFor(model => model.Salt, new { data_bind = "Salt" })
            </div>
        </div>
        <input type="submit" value="@GlobalResources.Save" class="float-right" />
    </fieldset>
}